package pancake.function;

import java.net.Authenticator;
import java.net.PasswordAuthentication;

public class MyAuth extends Authenticator{
	private String _user="";
	private String _pwd="";
	public MyAuth(String usr, String pwd)
	{
		this._user = usr;
		this._pwd = pwd;
	}
	@Override  
	 protected PasswordAuthentication getPasswordAuthentication()  
	 {  
	     return new PasswordAuthentication(this._user,this._pwd.toCharArray());  
	 }  
}
